﻿@using Webdiyer.WebControls.Mvc

@model PagedList<MvcFrameStruct.Areas.Article.Models.ArticleInfo>
<table class="table table-bordered table-striped">
    <tr>
        <th class="nowrap text-center">序号</th>
        <th class="text-center">
            @Html.DisplayNameFor(model => model.Title)
        </th>
        <th class="text-center">
            @Html.DisplayNameFor(model => model.PubDate)
        </th>
        <th class="text-center">
            @Html.DisplayNameFor(model => model.Author)
        </th>
        <th class="text-center">
            @Html.DisplayNameFor(model => model.Source)
        </th>
    </tr>
    @{ int i = 0;}
    @foreach (var item in Model)
    {
        <tr>
            <td>@(Model.StartItemIndex + i++)</td>
            <td>
                @Html.DisplayFor(modelItem => item.Title)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.PubDate)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Author)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Source)
            </td>
        </tr>
    }
</table>